#!/usr/bin/env bash
#
# Copyright (c) Guangdong Big Banian Info Tech Co., Ltd. All rights reserved.
# Debian软件包(".deb")解压前执行的脚本, 为正在被升级的包停止相关服务,直到升级或安装完成.
#

pkg_name=@PACKAGE_NAME@

# Stop @PACKAGE_NAME@ service
if [ -x /etc/init.d/${pkg_name} ]; then
    /etc/init.d/${pkg_name} stop
fi

exit 0
